import Vue from 'vue'
import App from './App.vue'
import router from './router' 
import ViewUI from 'view-design'
import ElementUI from 'element-ui';
import { Button, Select } from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import 'view-design/dist/styles/iview.css'
import './permission'

import store from './store'
// import Http from './service/http'

import axios from 'axios'
Vue.prototype.$axios = axios
axios.defaults.baseURL = '/api'  //关键代码

//把http挂在到Vue实例上
// Vue.prototype.$Http = Http
Vue.config.productionTip = false
Vue.use(ViewUI)
Vue.use(ElementUI)

Vue.component(Button.name, Button);
Vue.component(Select.name, Select);

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
